<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>05_网格布局-设置单元格的数量和尺寸</title>
        <style>
            .container {
                width: 400px;
                height: 400px;
                background-color: #ccc;

                display: grid;

                grid-template-rows: repeat(3,[row-start] 100px [row-end]);
                grid-template-columns: repeat(3,[col-start] 100px [col-end]);

            }

            .item {
                font-size: 30px;
                background-color: tomato;
            }

            .item01 {
                background-color: aqua;

                grid-row-start: row-start 1;
                grid-row-end: row-end 2;

                grid-column-start: col-start 1;
                grid-column-end: col-end 2;

            }

        </style>

    </head>
    <body>
        <div class="container">
            <div class="item item01">1</div>
            <div class="item item02">2</div>
            <div class="item item03">3</div>
            <div class="item">4</div>
            <div class="item">5</div>
        </div>
    </body>
</html>